Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 20, 2025

@Turbo87 Turbo87 requested a review from a team December 20, 2025 08:28
Comment on lines 17 to 19
<Placeholder style="width: 100%; height: 20px; border-radius: 4px;" />
<Placeholder style="width: 80%; height: 20px; border-radius: 4px;" />
<Placeholder style="width: 90%; height: 20px; border-radius: 4px;" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the example shown, if this scenario is common, I'd prefer providing props or CSS variables over an inline style approach.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked the current Ember.js usage and there we use class to set the width, height, margins, opacity, and border-radius.

I've added width, height, opacity and radius props now. margins and other stuff like that should still be set from outside the component IMHO.

@Turbo87 Turbo87 merged commit e99d83c into rust-lang:main Dec 22, 2025
12 checks passed
@Turbo87 Turbo87 deleted the svelte-placeholder branch December 22, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants